package jdwl.hrmgrsys.service;

import java.util.LinkedHashMap;
import java.util.List;

import jdwl.hrmgrsys.pojo.Staff;

import org.springframework.stereotype.Service;

import com.ssh.core.QueryResult;
import com.ssh.service.CRUDService;

@Service("staffService")
public class StaffMgrService extends CRUDService<Staff> {
	
	public QueryResult<Staff> listStaff(int pageNo,int pageSize) {
		return dao.findScrollData(Staff.class,pageNo, pageSize,null,null);
	}
	/**
	 * 
	 * @param pageNo 页数
	 * @param pageSize 展示的记录数量
	 * @param whereClause 过滤条件
	 * @param orderbyClause 排序条件
	 * @return
	 */
	public QueryResult<Staff> listStaff(int pageNo,int pageSize,List<String> whereClause, LinkedHashMap<String, String> orderbyClause) {
		return dao.findScrollData(Staff.class,pageNo, pageSize,whereClause,orderbyClause);
	}
}
